<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
    
    <select id="model.categoryparentid" name="model.categoryparentid"
                        		 onchange="channegcategory(this)">
       <option value="-1">--请选择--</option>
       <s:iterator value="caplist" status="stat">
       	<s:if test="parentId==0">
        	<option value="<s:property value="id" />" <s:if test="id.equals(model.categoryparentid)">selected</s:if>><s:property value="categoryName" /></option>
     </s:if>
     </s:iterator>
     </select><select id="model.categoryid" name="model.categoryid">
        <option value="-1">--请选择--</option>
        <s:iterator value="calist" status="stat">
         	<option value="<s:property value="id" />" <s:if test="id.equals(model.categoryid)">selected</s:if>><s:property value="categoryName" /></option>
      </s:iterator>
      </select><span id="CompareValidator3" style="color:Red;visibility:hidden;">不能为空</span>
